package com.bdqn.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bdqn.pojo.Right;
import com.bdqn.pojo.Role;
import com.bdqn.pojo.User;

import java.util.List;

public interface RoleMapper extends BaseMapper<User> {
    List<Role> list();
    List<Right> findAllRights();
    List<Right> findRightsByRole(Role role);
}
